using SimpleFramework;

public class CfgConfig : IKeyEntity
{
    public string Name { get; private set; }      //#名称
    public int Value { get; private set; }        //值
    public int[] ValueEx { get; private set; }    //值Ex

    public string GetKey()
    {
        return this.Name;
    }

    public void Read(DataBufferReader reader)
    {
        this.Name = reader.ReadString();
        this.Value = reader.ReadInt32();
        this.ValueEx = reader.ReadInt32Array();
    }
}
